package com.kaifamiao.association.entity;

import java.util.Set;

public class Department {

    private Integer id ;
    private String name ;

    // 维护 从 Department 到 Employee 的 一对多 关联关系
    private Set<Employee> employees ; // 表示当前部门包括哪些员工

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Employee> getEmployees() {
        return employees;
    }

    public void setEmployees(Set<Employee> employees) {
        this.employees = employees;
    }
}
